import { createApp } from 'vue'
import './style.css'

//引入elementui组件
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//全局引入 icon
import * as Icons from '@element-plus/icons-vue'; 

//路由
import router from './myrouter';
import App from './App.vue'


const myvue = createApp(App);

// 注册所有图标  
Object.keys(Icons).forEach(key => {  
    myvue.component(Icons[key].name, Icons[key]);  
  });

myvue.use(router)
myvue.use(ElementPlus)
myvue.mount('#app')
